package com.test;

import java.lang.reflect.Proxy;

public class Student extends Persion{



    public static void main(String[] args) {
        Persion proxyInstance = (Persion)Proxy.newProxyInstance(testInterceptor.class.getClassLoader(),
                Persion.class.getInterfaces(),
                new testInterceptor());
        Persion s = new Student();
        s.dest();

        proxyInstance.dest();
    }
}
